Skip to content

Adds math tests for transforms, rotations, and conversions (#103) #2801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 10, 2025

Conversation

jtigue-bdai
Copy link
Collaborator

@jtigue-bdai jtigue-bdai commented Jun 27, 2025

Description

this PR adds tests for:

  • scale_transform
  • unscale_transform
  • saturate
  • normalize
  • copysign
  • convert_quat
  • quat_conjugate
  • quat_from_euler_xyz
  • quat_from_matrix
  • euler_xyz_from_quat
  • matrix_from_euler
  • quat_from_angle_axis
  • axis_angle_from_quat
  • skew_symmetric_matrix
  • combine_transform
  • subtract_transform
  • compute_pose_error

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@jtigue-bdai jtigue-bdai self-assigned this Jun 30, 2025
Signed-off-by: James Tigue <166445701+jtigue-bdai@users.noreply.github.com>
@jtigue-bdai jtigue-bdai marked this pull request as ready for review June 30, 2025 13:50
Copy link
Contributor

@ooctipus ooctipus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good, Thanks James!

@kellyguo11 kellyguo11 changed the title Add math tests for transforms, rotations, and conversions (#103) Adds math tests for transforms, rotations, and conversions (#103) Jul 9, 2025
Signed-off-by: Kelly Guo <kellyg@nvidia.com>
@kellyguo11
Copy link
Contributor

looks like a couple of the tests are failing in CI, is that expected?

@jtigue-bdai
Copy link
Collaborator Author

looks like a couple of the tests are failing in CI, is that expected?

Nope not expected. Let me take a look.

@jtigue-bdai
Copy link
Collaborator Author

looks like a couple of the tests are failing in CI, is that expected?

Nope not expected. Let me take a look.

@kellyguo11 fixed the issue. it was the compute_pose_error changes. Once I reverted those and fixed the test it seemed to work on my machine.

Signed-off-by: James Tigue <166445701+jtigue-bdai@users.noreply.github.com>
@jtigue-bdai
Copy link
Collaborator Author

looks like a couple of the tests are failing in CI, is that expected?

Nope not expected. Let me take a look.

@kellyguo11 fixed the issue. it was the compute_pose_error changes. Once I reverted those and fixed the test it seemed to work on my machine.

Tests pass except test_tiled_camera

@ooctipus
Copy link
Contributor

Some tests in test_tiled_camera is a bit finicky because the rendered pixel are inherently stochastic in tiled camera, we fix some of it in the upcoming commits, but I think it should be fine. @kellyguo11

@kellyguo11
Copy link
Contributor

awesome, latest run looks good!

@kellyguo11 kellyguo11 merged commit 8e57a3a into isaac-sim:main Jul 10, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants